wayland: Add some dumb support for the TARGETS selection
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 3 Jul 2014 17:20:38 +0000 (13:20 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Thu, 3 Jul 2014 17:29:14 +0000 (13:29 -0400)
commitf4b212abd47435d97c464afa001fa812d4897015
tree38a971c8a0387bccba00e906539565346eab181c
parentece9ae4bc507a2f2e0d6660a0058c0f79735736b
wayland: Add some dumb support for the TARGETS selection

The way that GtkTextView et al pop up their context menu is to first
query to see if the clipboard has some text, and if so, enable the Paste
menu item. But since the Wayland backend hasn't had the greatest
selection and clipboard code, the callback for the clipboard got dropped
on the floor.

Add some simple code to respond to the TARGETS selection.

This makes right-clicking on a GtkTextView work fine.
gdk/wayland/gdkdevice-wayland.c
gtk/gtkclipboard-wayland.c